package com.show.business.device.bean;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.show.business.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * <p>
 * 设备分组
 * </p>
 *
 * @author dvlp
 * @since 2024-09-29
 */
@Getter
@Setter
@TableName("t_device_group")
@ApiModel(value = "DeviceGroup对象", description = "设备分组")
public class DeviceGroup extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分组编码")
    private String groupCode;

    @ApiModelProperty("分组名称")
    private String groupName;

    @ApiModelProperty("分组状态（0-启用；1-禁用）")
    private String groupStatus;

    @ApiModelProperty("告警方式-手机短信报警(0-开启；1-不开启)")
    private String phoneMsgAlarm;

    @ApiModelProperty("告警方式-手机语音呼叫(0-开启；1-不开启)")
    private String phoneVoiceAlarm;

    @ApiModelProperty("告警方式-设备蜂鸣报警(0-开启；1-不开启)")
    private String deviceBuzzAlarm;

    /** 备注 */
    private String remark;

    @ApiModelProperty("删除标识, 0存在，1删除")
    private String delFlag;

    /**
     * 设备列表 */
    @TableField(exist = false)
    @ApiModelProperty("设备列表")
    private List<DeviceManage> deviceManageList;

    /**
     * 分组告警设置手机号 */
    @TableField(exist = false)
    @ApiModelProperty("分组告警设置手机号")
    List<DeviceGroupAlarmPhone> alarmPhoneList;
}
